/**
 * Copyright (c) 2018-2022, NXOS Development Team
 * SPDX-License-Identifier: Apache-2.0
 * 
 * Contains: dma region for old device
 * 
 * Change Logs:
 * Date           Author            Notes
 * 2022-08-13      JasonHu           Init
 */

#ifndef __X86_DMA_REGION_H__
#define __X86_DMA_REGION_H__

#include <nxos_mini.h>

typedef struct NX_DmaRegion
{
    NX_Addr paddr;
    NX_Addr vaddr;
    NX_Size size;
    NX_Addr alignment;   /* addr align */
} NX_DmaRegion;

NX_Error NX_DmaAllocBuffer(NX_DmaRegion * d);
NX_Error NX_DmaFreeBuffer(NX_DmaRegion * d);

#endif /* __X86_DMA_REGION_H__ */
